package fleetAdmin;

public class PassAircraft {
	
	//Variable declaration and default values
	protected String make = "Boeing";
	protected String model = "747";
	protected String registrationNumber = "NOT REGISTERED";
	protected int engines = 4;
	protected int passengers = 350;
	
	//Empty constructor (loads default values)
	public PassAircraft() {	}
	
	//Constructor for setting own values
	public PassAircraft(String make, String model, String registrationNumber, int engines, int passengers) {
		this.make = make;
		this.model = model;
		this.registrationNumber = registrationNumber;
		this.engines = engines;
		this.passengers = passengers;
	}
	
	//setter for passengers
	public void setPassengers(int passengers) {
		this.passengers = passengers;
	}
	
	//getter for passengers
	public int getPassengers() {
		return passengers;
	}
	
	
	//give a nice toSring layout
	public String toString() {
		return ("PLANE <MAKE:"+make+"\tMODEL:"+model+"\tREG#:"+registrationNumber+"\t#ENGINES:"+engines+"\t#PASSENGERS:"+passengers);
	}
}
